package org.zzz.service;

import org.zzz.entity.Teacher;
import org.zzz.entity.TeacherVo;

import java.util.List;

/**
 * @Author ZZF
 * @Time 2021/04/20 22:24
 */
public interface TeacherService {
    /**
     * 添加教师信息
     *
     * @param teacher
     * @return
     */
    boolean insertTeacher(Teacher teacher);

    /**
     * 获取所有教师信息
     * @return
     */
    List<Teacher> listAllTeacher();

    /**
     * 根据工号获取教师信息
     * @param id
     * @return
     */
    Teacher getTeacherById(String id);

    /**
     * 根据教师姓名获取教师信息
     * @param name
     * @return
     */
    List<Teacher> getTeacherByName(String name);


}
